package nuc.jyg.entity;

/**
 * @Author Nuc YongGuang Ji
 * Created by JiYongGuang on 2017/5/27.
 */
public class Book {

    private long bookId;//图书id
    private String name;//图书名称
    private int number;//馆藏数量

    public Book() {
    }

    public Book(long bookId, String name, int number) {
        this.bookId = bookId;
        this.name = name;
        this.number = number;
    }

    /**
     * Getter for property 'bookId'.
     *
     * @return Value for property 'bookId'.
     */
    public long getBookId() {
        return bookId;
    }

    /**
     * Setter for property 'bookId'.
     *
     * @param bookId Value to set for property 'bookId'.
     */
    public void setBookId(long bookId) {
        this.bookId = bookId;
    }

    /**
     * Getter for property 'name'.
     *
     * @return Value for property 'name'.
     */
    public String getName() {
        return name;
    }

    /**
     * Setter for property 'name'.
     *
     * @param name Value to set for property 'name'.
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Getter for property 'number'.
     *
     * @return Value for property 'number'.
     */
    public int getNumber() {
        return number;
    }

    /**
     * Setter for property 'number'.
     *
     * @param number Value to set for property 'number'.
     */
    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", name='" + name + '\'' +
                ", number=" + number +
                '}';
    }
}
